export function createElement(tags, attrs = {}, ...children) {
  return new VNode(tags, attrs, children)
}

export function createTextVNode(text) {
  return new VNode(undefined, undefined, undefined, text)
}

function VNode(tag, props, children, text) {
  return {
    tag,
    props,
    children,
    text
  }
}
